package com.xinghou.platform.server.api.common;

import com.xinghou.platform.util.StringUtils;

/**
 * Created by qingshengzheng on 16/7/7.
 */
public class ImageComb {
    private static String prefix="http";
    private static String storepath="/xh/store/";

    public static String combHeaderUrl(String url)
    {
        if(StringUtils.isEmpty(url)) return "";
        if(!url.startsWith(prefix))
            return XHUrlConst.IMG_DOMIAN+url;
        return url;
    }
    public static String combStoreUrl(String url)
    {
        if(StringUtils.isEmpty(url)) return "";
        if(!url.startsWith(prefix))
            return XHUrlConst.IMG_DOMIAN+url;
        return url;
    }
    public static String comPrefixUrl(String url)
    {
        if(StringUtils.isEmpty(url)) return "";
        if(!url.startsWith(prefix))
            return XHUrlConst.IMG_DOMIAN+url;
        return url;

    }

}
